package com.light.gulimall.product.feign;

import com.light.common.dto.savespuinfo.SaveSpuInfoDTO;
import com.light.common.utils.R;
import com.light.gulimall.product.feign.fallBack.SeckillRemoteServiceFallBack;
import com.light.gulimall.product.to.SecKillSkuRedisTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 远程调用seckill模块
 */
@FeignClient(name = "gulimall-seckill",fallback = SeckillRemoteServiceFallBack.class)
public interface SeckillRemoteServiceClient {

    @GetMapping("/currentSeckillSkus/{skuId}")
    SecKillSkuRedisTO getCurrentSeckillSkuById(@PathVariable("skuId") Long skuId);
}
